package cn.cdqf.service.impl;

import cn.cdqf.bean.TLoginlog;
import cn.cdqf.mapper.LoginlogMapper;
import cn.cdqf.service.LoginlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginlogServiceImpl implements LoginlogService {

    @Autowired
    private LoginlogMapper loginlogMapper;

    @Override
    public int addLoginlog(TLoginlog tLoginlog) {
        return loginlogMapper.addLoginlog(tLoginlog);
    }

    @Override
    public List<TLoginlog> queryLoginlog(String no) {
        return loginlogMapper.queryLoginlog(no);
    }

    @Override
    public TLoginlog queryLastLoginlog(String no) {
        return loginlogMapper.queryLastLoginlog(no);
    }
}
